<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>知识库应用 - 消防大模型应用平台</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.6.0/dist/echarts.min.js"></script>
    
</head>
<body class="bg-gray-50">
    <!-- 导航栏 -->
    <nav class="bg-blue-600 text-white shadow-lg">
        <div class="max-w-7xl mx-auto px-4">
            <div class="flex justify-between items-center h-16">
                <div class="flex items-center">
                    <i class="fas fa-fire-extinguisher text-2xl mr-2"></i>
                    <span class="text-xl font-bold">消防大模型应用平台</span>
                </div>
                <div class="hidden md:flex space-x-4">
                    <a href="index.html" class="hover:bg-blue-700 px-3 py-2 rounded">首页</a>
                    <a href="knowledge.html" class="bg-blue-700 px-3 py-2 rounded">知识库</a>
                    <a href="report.html" class="hover:bg-blue-700 px-3 py-2 rounded">报告生成</a>
                    <a href="analysis.html" class="hover:bg-blue-700 px-3 py-2 rounded">案件分析</a>
                    <a href="reasoning.html" class="hover:bg-blue-700 px-3 py-2 rounded">推理分析</a>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容区 -->
    <main class="max-w-7xl mx-auto px-4 py-8">
        <div class="flex justify-between items-center mb-8">
            <h1 class="text-3xl font-bold text-gray-800">知识库应用</h1>
            <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
                <i class="fas fa-plus mr-2"></i>新建知识库
            </button>
        </div>

        <!-- 搜索和筛选区 -->
        <div class="bg-white p-4 rounded-lg shadow mb-8">
            <div class="flex flex-wrap gap-4">
                <div class="flex-1">
                    <input type="text" placeholder="搜索知识库..." class="w-full px-4 py-2 border rounded-lg">
                </div>
                <select class="px-4 py-2 border rounded-lg">
                    <option>所有分类</option>
                    <option>消防法规</option>
                    <option>事故案例</option>
                    <option>技术标准</option>
                </select>
                <button class="bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700">
                    <i class="fas fa-search mr-2"></i>搜索
                </button>
            </div>
        </div>

        <!-- 知识库列表 -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
            <!-- 知识库卡片 1 -->
            <div class="bg-white rounded-lg shadow-lg p-6">
                <div class="flex items-center mb-4">
                    <i class="fas fa-book text-2xl text-blue-600 mr-3"></i>
                    <h3 class="text-xl font-semibold">消防法规库</h3>
                </div>
                <p class="text-gray-600 mb-4">包含最新的消防法律法规和标准规范</p>
                <div class="flex justify-between items-center">
                    <span class="text-sm text-gray-500">更新于 2024-03-15</span>
                    <button class="text-blue-600 hover:text-blue-800">
                        <i class="fas fa-edit mr-1"></i>编辑
                    </button>
                </div>
            </div>

            <!-- 知识库卡片 2 -->
            <div class="bg-white rounded-lg shadow-lg p-6">
                <div class="flex items-center mb-4">
                    <i class="fas fa-file-alt text-2xl text-blue-600 mr-3"></i>
                    <h3 class="text-xl font-semibold">事故案例库</h3>
                </div>
                <p class="text-gray-600 mb-4">收集整理典型火灾事故案例分析</p>
                <div class="flex justify-between items-center">
                    <span class="text-sm text-gray-500">更新于 2024-03-14</span>
                    <button class="text-blue-600 hover:text-blue-800">
                        <i class="fas fa-edit mr-1"></i>编辑
                    </button>
                </div>
            </div>

            <!-- 知识库卡片 3 -->
            <div class="bg-white rounded-lg shadow-lg p-6">
                <div class="flex items-center mb-4">
                    <i class="fas fa-tools text-2xl text-blue-600 mr-3"></i>
                    <h3 class="text-xl font-semibold">技术标准库</h3>
                </div>
                <p class="text-gray-600 mb-4">消防设备和技术标准规范文档</p>
                <div class="flex justify-between items-center">
                    <span class="text-sm text-gray-500">更新于 2024-03-13</span>
                    <button class="text-blue-600 hover:text-blue-800">
                        <i class="fas fa-edit mr-1"></i>编辑
                    </button>
                </div>
            </div>
        </div>

        <!-- 上传文件区域 -->
        <div class="mt-12 bg-white rounded-lg shadow-lg p-6">
            <h2 class="text-2xl font-bold mb-4">上传文件</h2>
            <div class="border-2 border-dashed border-gray-300 rounded-lg p-8 text-center">
                <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-4"></i>
                <p class="text-gray-600 mb-4">拖拽文件到此处或点击上传</p>
                <button class="bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700">
                    <i class="fas fa-upload mr-2"></i>选择文件
                </button>
            </div>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-gray-800 text-white mt-12">
        <div class="max-w-7xl mx-auto px-4 py-8">
            <div class="text-center">
                <p>© 2024 消防大模型应用平台. All rights reserved.</p>
            </div>
        </div>
    </footer>
</body>
</html> 